﻿<local:DocumentBase x:Class="WPFExcelReport.YCAFSAV95DOC"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock" 
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:UserControls="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Controls"
                    xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:INTEX.DataBase"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                    xmlns:wep="clr-namespace:WPFExcelReport"
                    Height="700" Width="1024" 
                    FontSize="12"
                   Background="White"
                    Loaded="Window_Loaded"
     >
    <local:DocumentBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
        <ucd:ImageConverter  x:Key="image"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:QtyColorConverter  x:Key="qtyc"/>
        <db:SETINTEXDB  x:Key="SetData" />
        <db:SETINTEXDB  x:Key="SetProd" />
        <db:SETINTEXDB  x:Key="SetEnv" />
        <CollectionViewSource   x:Key="vwABPOS" Source="{Binding Path=ICC_ABPOS_MAT,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwPABPOS" Source="{Binding Path=ICC_ABPOS_MAT,Source={StaticResource SetProd}}" />
        <CollectionViewSource   x:Key="vwLIEFDAT" Source="{Binding Path=LIEFDAT,Source={StaticResource SetEnv}}" />
        <CollectionViewSource   x:Key="vwSECTION" Source="{Binding Path=ICC_SECTION,Source={StaticResource SetEnv}}" />        
    </local:DocumentBase.Resources>
    <Grid   >
        <TabControl >
            <TabItem Header="总览信息">
                <ad:DockingManager Grid.Row="1" >
                    <ad:ResizingPanel Orientation="Vertical">
                        <ad:ResizingPanel Orientation="Horizontal">
                            <!--#################################################################################################-->
                            <!--CENTER PART-->
                            <ad:DocumentPane x:Name="_documentsHost" Background="White">
                                <ad:DockableContent>
                                    <StackPanel>
                                        <WrapPanel >
                                            <TextBlock FontSize="18"   Width="59"  Margin="0,0,0,0" Text="款式" />
                                            <TextBox Background="Yellow"  FontSize="18"    Width="120" Name="txtFSART" CharacterCasing="Upper" Margin="10,0,0,0" Text="" />
                                            <TextBlock FontSize="18" VerticalAlignment="Center">年份</TextBlock>
                                            <TextBox FontSize="18" Name="txtYear" VerticalAlignment="Center">2014</TextBox>
                                            <TextBlock FontSize="18" VerticalAlignment="Center">波段</TextBlock>
                                            <ComboBox Width="100" Name="cbSECTION"
                                                      DisplayMemberPath="SDDATEN"
                                                      SelectedValuePath="SDKEY"
                                                      SelectionChanged="cbSECTION_SelectionChanged"
                                                      ItemsSource="{Binding Source={StaticResource ResourceKey=vwSECTION}}"  
                                                      ></ComboBox>
                                            <TextBox Name="txtSection" Width="220" FontSize="18" Background="Beige" CharacterCasing="Upper" ></TextBox>
                                            <StackPanel>
                                                <Button Name="btnRefresh" Width="30" Height="30"  Click="btnRefresh_Click">
                                                    <Button.Background>
                                                        <ImageBrush  ImageSource="Image/Reload.png" />
                                                    </Button.Background>
                                                </Button>
                                            </StackPanel>
                                            <Button FontSize="18" Height="30" Width="30" Margin="5,0,0,0" Name="btnPrint" Click="btnPrint_Click">
                                                <Button.Background>
                                                    <ImageBrush  ImageSource="Image/Print.png" />
                                                </Button.Background>
                                            </Button>
                                            <TextBlock Margin="5,0,0,0"  VerticalAlignment="Center" >打印</TextBlock>
                                            <Button Width="Auto"  FontSize="18"  Margin="10,0,0,0"  HorizontalAlignment="Left" Click="btnFilter_Click">过滤</Button>
                                            <Button Width="Auto"   FontSize="18"  Margin="10,0,0,0" HorizontalAlignment="Left" Click="btnFilterClear_Click">清除</Button>
                                        </WrapPanel>
                                        <!--WrapPanel>
                                            <TextBlock  FontSize="18">物料类型:</TextBlock>
                                            <TextBox  FontSize="18" Name="txtMTYPE" Width="20">F</TextBox>
                                            <TextBlock  FontSize="18">物料:</TextBlock>
                                            <TextBox Name="txtMART" Background="Yellow" Width="120" FontSize="18">B</TextBox>
                                            <TextBlock  FontSize="18">色号:</TextBlock>
                                            <TextBox Name="txtMCOLOR" Background="White" Width="60" FontSize="18"   ></TextBox>
                                            <TextBlock  FontSize="18">尺码:</TextBlock>
                                            <TextBox Name="txtMSIZE" Background="White" Width="60" FontSize="18"  ></TextBox>
                                        </WrapPanel-->
                                        <DataGrid 
                                            AutoGenerateColumns="False"
                                            EnableRowVirtualization="False"
                                            VerticalScrollBarVisibility="Auto"
                                            HorizontalScrollBarVisibility="Auto"
                                            HeadersVisibility="Column" 
                                            FontSize="12"
                                            IsReadOnly="True"
                                            MaxWidth="1000"
                                            HorizontalAlignment="Stretch"
                                            VerticalAlignment="Stretch"
                                            MaxHeight="500"
                                            ItemsSource="{Binding Source={StaticResource ResourceKey=vwABPOS}}"  
                                            x:Name="dlgABPOS" 
                                            Margin="0,1,0,0"        
                                            >
                                            <DataGrid.Columns>
                                                <DataGridTextColumn Binding="{Binding Path=ABPSPGRD}" Header="确认"   Width="30" />
                                                <DataGridTextColumn Binding="{Binding Path=ABPGESSTA}" Header="状态"   Width="30" />
                                                <DataGridTextColumn Binding="{Binding Path=KRS}" Header=""   Width="30" />
                                                <DataGridTextColumn Binding="{Binding Path=LFD,Converter={StaticResource ResourceKey=pnum}}" Header="生产单"   Width="30" />
                                                <DataGridTextColumn Binding="{Binding Path=ABPEND}" Header="结"   Width="20" />
                                                <DataGridTextColumn Binding="{Binding Path=SECTION}" Header="波段"   Width="30" />
                                                <DataGridTextColumn Binding="{Binding Path=MATARTD,Converter={StaticResource ResourceKey=gb2312}}" Header="大类"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=ARTGRPD,Converter={StaticResource ResourceKey=gb2312}}" Header="类别"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=ABPART,Converter={StaticResource ResourceKey=gb2312}}" Header="款号"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=ARTDES,Converter={StaticResource ResourceKey=gb2312}}" Header="款式"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=ABPFARBE,Converter={StaticResource ResourceKey=gb2312}}" Header="颜色"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=CDES,Converter={StaticResource ResourceKey=gb2312}}" Header="颜色"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=MAINFABRIC,Converter={StaticResource ResourceKey=gb2312}}" Header="面辅料类别"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=FWASHING}" Header="水洗方式"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=RSSENDDAT}" Header="发封头样"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=RSGETDATE}" Header="回头样"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=RSACSENDDATE}" Header="下齐色样"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=RSACGETDATE}" Header="工厂寄回齐色样"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=RSACCDATE}" Header="确认各色"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=RSACCCOMMENTS}" Header="确认意见"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=RSSSTAMPSENDATE}" Header="盖章样发出时间"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=EMFSENDDAT}" Header="面料发货时间"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=EAFSENDDAT}" Header="配布/里布发货"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=EACSENDATE}" Header="辅料发货"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=EREMARK}" Header="备注"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=ECHECKDAT}" Header="采购下核对单"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=EFCHECKDAT}" Header="工厂回核对单"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=TQTYD}" Header="订货会"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=TQTYP}" Header="下单数"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=PCQTY}" Header="裁剪数"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=PPQTY}" Header="入库数"   Width="Auto" >
                                                    <DataGridTextColumn.ElementStyle>
                                                        <Style TargetType="TextBlock">
                                                            <Setter Property="Foreground" Value="{Binding Path=DQTY,Converter={StaticResource ResourceKey=qtyc}}"></Setter>
                                                            <Setter Property="HorizontalAlignment" Value="Center"></Setter>
                                                        </Style>
                                                    </DataGridTextColumn.ElementStyle>
                                                </DataGridTextColumn>
                                                <DataGridTextColumn Binding="{Binding Path=PDQTY}" Header="差异数（裁剪与入库)"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=PCDAT}" Header="裁剪时间"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=PSDAT}" Header="上线时间"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=PSLAB}" Header="上线人数"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=PMOUT}" Header="台产量"   Width="Auto" />
                                                <DataGridTextColumn Binding="{Binding Path=PPENDAT}" Header="预计入库"   Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PAENDAE}" Header="预计入库"   Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PPENDAT}" Header="实际入库"   Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PSTARTDATE}" Header="合同期"   Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PAENDSTOPDAT}" Header="入库截止"   Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PQCDAT}" Header="检验"   Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PQC2QTY}" Header="检品退货" Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PQC2REMARK}" Header="退货问题描述"   Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PREPRTNDAT}" Header="返修回库时间"   Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PSAMRTDAT}" Header="样衣样卡返回时间"   Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PQADAE}" Header="销售投诉时间"   Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PQAISSUE}" Header="销售反应投诉问题描述"   Width="Auto"/>
                                                <DataGridTextColumn Binding="{Binding Path=PQAREMARK}" Header="处理方案"   Width="Auto"/>
                                            </DataGrid.Columns>
                                        </DataGrid  >
                                    </StackPanel>
                                </ad:DockableContent>
                            </ad:DocumentPane>
                            <ad:ResizingPanel Orientation="Vertical" ad:ResizingPanel.ResizeWidth="200">
                                <!--#################################################################################################-->
                                <!--RIGHT PART-->
                                <ad:DockablePane>
                                    <ad:DockableContent>
                                        <FlowDocumentScrollViewer DockPanel.Dock="Right" Width="Auto" MaxWidth="400" MinWidth="200">
                                            <FlowDocument>
                                                <Paragraph>
                                                    <Run FontSize="14" FontWeight="Bold">
                                                        款式信息
                                                    </Run>
                                                    <StackPanel>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>波段</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=SECTION, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>大类</TextBlock>
                                                            <TextBlock Grid.Column="1" Background="LightGray" Text="{Binding Path=MATARTD, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>类别</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ARTGRPD, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>款号</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ABPART, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>款式</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ARTDES, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <WrapPanel>
                                                            <Grid>
                                                                <Grid.ColumnDefinitions>
                                                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                                                    <ColumnDefinition Width="40"></ColumnDefinition>
                                                                </Grid.ColumnDefinitions>
                                                                <TextBlock Grid.Column="0">颜色</TextBlock>
                                                                <TextBlock Grid.Column="1"  Background="LightGray" Text="{Binding Path=ABPFARBE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                            </Grid>
                                                            <Grid>
                                                                <Grid.ColumnDefinitions>
                                                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                                                    <ColumnDefinition Width="80"></ColumnDefinition>
                                                                </Grid.ColumnDefinitions>
                                                                <TextBlock Grid.Column="1"  Background="LightGray" Text="{Binding Path=CDES, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                            </Grid>
                                                        </WrapPanel>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>面辅料类别</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=MAINFABRIC, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>水洗方式</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=FWASHING, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                    </StackPanel>
                                                </Paragraph>
                                                <Paragraph>
                                                    <Run FontSize="18">生产状态</Run>
                                                    <StackPanel>
                                                        <WrapPanel>
                                                            <Grid>
                                                                <Grid.ColumnDefinitions>
                                                                    <ColumnDefinition Width="40"></ColumnDefinition>
                                                                    <ColumnDefinition Width="40"></ColumnDefinition>
                                                                </Grid.ColumnDefinitions>
                                                                <TextBlock>确认</TextBlock>
                                                                <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ABPSPGRD, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                            </Grid>
                                                            <Grid>
                                                                <Grid.ColumnDefinitions>
                                                                    <ColumnDefinition Width="40"></ColumnDefinition>
                                                                    <ColumnDefinition Width="40"></ColumnDefinition>
                                                                </Grid.ColumnDefinitions>
                                                                <TextBlock>状态</TextBlock>
                                                                <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ABPGESSTA, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                            </Grid>
                                                        </WrapPanel>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>结束</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ABPEND, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                    </StackPanel>
                                                </Paragraph>
                                                <Paragraph>
                                                    <Run FontSize="16">试样情况</Run>
                                                    <StackPanel>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>发封头样</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=RSSENDDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>回头样</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=RSGETDATE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>下齐色样</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=RSACSENDDATE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>工厂寄回齐色样</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=RSACGETDATE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>确认各色</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=RSACCDATE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>确认意见</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=RSACCCOMMENTS, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>盖章样发出时间</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=RSSSTAMPSENDATE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                    </StackPanel>
                                                </Paragraph>
                                                <Paragraph>
                                                    <Run FontSize="16">原料</Run>
                                                    <StackPanel>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>面料发货时间</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=EMFSENDDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>配布/里布发货</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=EAFSENDDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>辅料发货</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=EACSENDATE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>备注</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=EREMARK, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>采购下核对单</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ECHECKDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>工厂回核对单</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=EFCHECKDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                    </StackPanel>
                                                </Paragraph>
                                                <Paragraph>
                                                    <Run FontSize="16">生产</Run>
                                                    <StackPanel>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>下单数</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PQTY, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>裁剪数</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PCQTY, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>入库数</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PPQTY, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>差异数（裁剪与入库)</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PDQTY, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>裁剪时间</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PCDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>上线时间</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PSDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>上线人数</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PSLAB, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>台产量</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PMOUT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>预计入库</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PPENDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>实际入库</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PAENDAE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>入库截止</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PAENDSTOPDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>合同期</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PSTARTDATE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                    </StackPanel>
                                                </Paragraph>
                                                <Paragraph>
                                                    <Run FontSize="16">质量</Run>
                                                    <StackPanel>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>检验</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PQCDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>检品退货</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PQC2QTY, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>退货问题描述</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PQC2REMARK, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>返修回库时间</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PREPRTNDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>样衣样卡返回时间</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PSAMRTDAT, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                    </StackPanel>
                                                </Paragraph>
                                                <Paragraph>
                                                    <Run FontSize="16">销售</Run>
                                                    <StackPanel>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>销售投诉时间</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PQADAE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>销售反应投诉问题描述</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PQAISSUE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="60"></ColumnDefinition>
                                                                <ColumnDefinition Width="120"></ColumnDefinition>
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock>处理方案</TextBlock>
                                                            <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=PQAREMARK, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                                        </Grid>
                                                    </StackPanel>
                                                </Paragraph>
                                            </FlowDocument>
                                        </FlowDocumentScrollViewer>
                                    </ad:DockableContent>
                                </ad:DockablePane>
                            </ad:ResizingPanel>
                        </ad:ResizingPanel>
                    </ad:ResizingPanel>
                </ad:DockingManager>

            </TabItem>
            <TabItem Header="明细信息" Background="White" Visibility="Hidden">
                <DockPanel >
                    <Grid  >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="1*"/>
                            <RowDefinition Height="1*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="6*"/>
                            <ColumnDefinition Width="21*"/>
                            <ColumnDefinition Width="227*"/>
                            <ColumnDefinition Width="255*"/>
                            <ColumnDefinition Width="254*" />
                            <ColumnDefinition Width="255*" />
                        </Grid.ColumnDefinitions>
                        <WrapPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="6">
                            <StackPanel>
                                <TextBlock>图片初始位置(注意反斜杠)</TextBlock>
                                <TextBox Name="txtPhoto" Width="120">D:/Images</TextBox>
                            </StackPanel>
                            <!--Button Width="Auto" Margin="10,0,0,0"  HorizontalAlignment="Left" Name="btnFilterABCO" Click="btnFilterABCO_Click">过滤</Button>
                            <Button Width="Auto"  Margin="10,0,0,0" HorizontalAlignment="Left" Name="btnFilterABCOClear" Click="btnFilterABCOClear_Click">清除</Button-->
                            <Button Width="Auto"  Margin="10,0,0,0" HorizontalAlignment="Left"  Click="btnDelProd_Click">取消款</Button>
                            <Button  Click="btnSave_Click" Margin="30,0,0,0" Height="30" Width="30">
                                <Button.Background>
                                    <ImageBrush  ImageSource="Image/Save.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Margin="10,0,0,0" VerticalAlignment="Center"  FontSize="18" >保存</TextBlock>
                            <Button Click="btnApprove_Click" Margin="10,0,0,0" Height="30" Width="30">
                                <Button.Background>
                                    <ImageBrush  ImageSource="Image/button_ok.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Margin="10,0,0,0" VerticalAlignment="Center"  FontSize="18" >完成</TextBlock>
                            <!--Button  Click="btnSame_Click" Margin="10,0,0,0" Height="30" Width="30">
                                <Button.Background>
                                    <ImageBrush  ImageSource="Image/Refresh.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Margin="10,0,0,0" VerticalAlignment="Center"  FontSize="18" >同步</TextBlock-->
                            <TextBlock Name="txtLExistingLines" Width="200"></TextBlock>
                            <TextBox Name="txtLAffectedLines" Width="200"></TextBox>
                        </WrapPanel>
                        <DataGrid Grid.Row="1" Grid.RowSpan="1" Grid.Column="0" Grid.ColumnSpan="3" Background="White"
                              AutoGenerateColumns="False"
                              EnableRowVirtualization="False"
                              VerticalScrollBarVisibility="Auto"
                              HorizontalScrollBarVisibility="Auto"
                              HeadersVisibility="Column" 
                              FontSize="12"
                              IsReadOnly="True"
                              HorizontalAlignment="Stretch"
                              VerticalAlignment="Stretch"
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwPABPOS}}"  
                              x:Name="dlgPABPOS" 
                              Margin="0,1,0,0"             
                RowDetailsVisibilityMode="Visible"
                    >
                            <DataGrid.RowDetailsTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal" Margin="50,0,0,0" HorizontalAlignment="Left">
                                        <TextBlock Foreground="Black" FontSize="12" Text="计划量"/>
                                        <TextBlock Foreground="Black" FontSize="12" Text="{Binding Path=QTYP}"/>
                                        <TextBlock Foreground="Black" Margin="10,0,0,0" FontSize="12" Text="S:"/>
                                        <TextBlock Foreground="Black" Margin="10,0,0,0" FontSize="12" Text="{Binding Path=SP}"/>
                                        <TextBlock Foreground="Black" Margin="10,0,0,0" FontSize="12" Text="M:"/>
                                        <TextBlock Foreground="Black" Margin="10,0,0,0"  FontSize="12" Text="{Binding Path=MP}"/>
                                        <TextBlock Foreground="Black" Margin="10,0,0,0"  FontSize="12" Text="L:"/>
                                        <TextBlock Foreground="Black" Margin="10,0,0,0"  FontSize="12" Text="{Binding Path=LP}"/>
                                        <TextBlock Foreground="Black" Margin="10,0,0,0"  FontSize="12" Text="XL:"/>
                                        <TextBlock Foreground="Black" Margin="10,0,0,0"  FontSize="12" Text="{Binding Path=XLP}"/>
                                    </StackPanel>
                                </DataTemplate>
                            </DataGrid.RowDetailsTemplate>
                            <DataGrid.Columns>
                                <DataGridTextColumn Binding="{Binding Path=ABPSPGRD}" Header="确认"   Width="30" />
                                <DataGridTextColumn Binding="{Binding Path=ABPGESSTA}" Header="状态"   Width="30" />
                                <DataGridTextColumn Binding="{Binding Path=ABPEND}" Header="结"   Width="20" />
                                <DataGridTextColumn Binding="{Binding Path=SECTION}" Header="波段"   Width="30" />
                                <DataGridTextColumn Binding="{Binding Path=MATARTD,Converter={StaticResource ResourceKey=gb2312}}" Header="大类"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=ARTGRPD,Converter={StaticResource ResourceKey=gb2312}}" Header="类别"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=ABPART,Converter={StaticResource ResourceKey=gb2312}}" Header="款号"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=ARTDES,Converter={StaticResource ResourceKey=gb2312}}" Header="款式"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=ABPFARBE,Converter={StaticResource ResourceKey=gb2312}}" Header="颜色"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=CDES,Converter={StaticResource ResourceKey=gb2312}}" Header="颜色"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=FSFINISHING}" Header="水洗方式"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=MAINFABRIC}" Header="面辅料类别"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=FWASHING}" Header="水洗方式"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=RSSENDDAT}" Header="发封头样"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=RSGETDATE}" Header="回头样"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=RSACSENDDATE}" Header="下齐色样"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=RSACGETDATE}" Header="工厂寄回齐色样"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=RSACCDATE}" Header="确认各色"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=RSACCCOMMENTS}" Header="确认意见"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=RSSSTAMPSENDATE}" Header="盖章样发出时间"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=EMFSENDDAT}" Header="面料发货时间"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=EAFSENDDAT}" Header="配布/里布发货"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=EACSENDATE}" Header="辅料发货"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=EREMARK}" Header="备注"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=ECHECKDAT}" Header="采购下核对单"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=EFCHECKDAT}" Header="工厂回核对单"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=TQTYP}" Header="下单数"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=PCQTY}" Header="裁剪数"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=PPQTY}" Header="入库数"   Width="Auto" >
                                    <DataGridTextColumn.ElementStyle>
                                        <Style TargetType="TextBlock">
                                            <Setter Property="Foreground" Value="{Binding Path=DQTY,Converter={StaticResource ResourceKey=qtyc}}"></Setter>
                                            <Setter Property="HorizontalAlignment" Value="Center"></Setter>
                                        </Style>
                                    </DataGridTextColumn.ElementStyle>
                                </DataGridTextColumn>
                                <DataGridTextColumn Binding="{Binding Path=PDQTY}" Header="差异数（裁剪与入库)"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=PCDAT}" Header="裁剪时间"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=PSDAT}" Header="上线时间"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=PSLAB}" Header="上线人数"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=PMOUT}" Header="台产量"   Width="Auto" />
                                <DataGridTextColumn Binding="{Binding Path=PPENDAT}" Header="预计入库"   Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PAENDAE}" Header="预计入库"   Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PPENDAT}" Header="实际入库"   Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PSTARTDATE}" Header="合同期"   Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PAENDSTOPDAT}" Header="入库截止"   Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PQCDAT}" Header="检验"   Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PQC2QTY}" Header="检品退货" Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PQC2REMARK}" Header="退货问题描述"   Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PREPRTNDAT}" Header="返修回库时间"   Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PSAMRTDAT}" Header="样衣样卡返回时间"   Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PQADAE}" Header="销售投诉时间"   Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PQAISSUE}" Header="销售反应投诉问题描述"   Width="Auto"/>
                                <DataGridTextColumn Binding="{Binding Path=PQAREMARK}" Header="处理方案"   Width="Auto"/>
                            </DataGrid.Columns>
                        </DataGrid  >
                        <StackPanel  Grid.Row="1" Grid.RowSpan="1" Grid.Column="3" Grid.ColumnSpan="1" Background="White">
                            <WrapPanel>
                                <TextBlock FontSize="18"> 款式信息</TextBlock>
                            </WrapPanel>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>波段</TextBlock>
                                <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=SECTION, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBlock>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>大类</TextBlock>
                                <TextBlock Grid.Column="1" Background="LightGray" Text="{Binding Path=MATARTD, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>类别</TextBlock>
                                <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ARTGRPD, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>款号</TextBlock>
                                <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ABPART, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>款式</TextBlock>
                                <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ARTDES, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                            </Grid>
                            <WrapPanel>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                                        <ColumnDefinition Width="40"></ColumnDefinition>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Grid.Column="0">颜色</TextBlock>
                                    <TextBlock Grid.Column="1"  Background="LightGray" Text="{Binding Path=ABPFARBE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                </Grid>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                                        <ColumnDefinition Width="80"></ColumnDefinition>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Grid.Column="1"  Background="LightGray" Text="{Binding Path=CDES, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                                </Grid>
                            </WrapPanel>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>面辅料类别</TextBlock>
                                <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=MAINFABRIC, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>水洗方式</TextBlock>
                                <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=FWASHING, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"></TextBlock>
                            </Grid>
                            <Image Source="{Binding Path=PHOTOLINK, Source={StaticResource ResourceKey=vwPABPOS}}"
                                                   Width="100"
                                                   Height="100"
                                                   Stretch="Fill"
                                                   HorizontalAlignment="Left" />

                        </StackPanel>
                        <StackPanel  Grid.Row="1" Grid.RowSpan="1" Grid.Column="4" Grid.ColumnSpan="1">
                            <WrapPanel>
                                <TextBlock FontSize="18"> 生产状态</TextBlock>
                                <Button FontSize="18" Height="24" Width="24" Margin="1,0,0,0"  Click="btnRelease_Click">
                                    <Button.Background>
                                        <ImageBrush  ImageSource="Image/button_ok.png" />
                                    </Button.Background>
                                </Button>
                                <TextBlock FontSize="18"> 发布</TextBlock>
                            </WrapPanel>
                            <WrapPanel>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                                        <ColumnDefinition Width="40"></ColumnDefinition>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock>确认</TextBlock>
                                    <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ABPSPGRD, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBlock>
                                </Grid>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                                        <ColumnDefinition Width="40"></ColumnDefinition>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock>状态</TextBlock>
                                    <TextBlock Grid.Column="1"  Background="LightGray"  Text="{Binding Path=ABPGESSTA, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBlock>
                                </Grid>
                            </WrapPanel>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>结束</TextBlock>
                                <TextBlock Grid.Column="1"  Width="40" Background="LightGray"  Text="{Binding Path=ABPEND, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBlock>
                            </Grid>
                            <WrapPanel>
                                <Button FontSize="18" Height="24" Width="24" Margin="1,0,0,0"  Click="btnUpdateDel_Click">
                                    <Button.Background>
                                        <ImageBrush  ImageSource="Image/Refresh.png" />
                                    </Button.Background>
                                </Button>
                                <TextBlock FontSize="18" Margin="1,0,0,0" >交期</TextBlock>
                                <TextBox Background="White"  FontSize="18"   Margin="1,0,0,0"  Width="100" Height="30" VerticalAlignment="Top" Text="{Binding ABPLIEFDAT, Source={ StaticResource ResourceKey=vwPABPOS}}" CharacterCasing="Upper" />
                            </WrapPanel>
                            <WrapPanel>
                                <Button FontSize="18" Height="24" Width="24" Margin="1,0,0,0"  Click="btnUpdateAR_Click">
                                    <Button.Background>
                                        <ImageBrush  ImageSource="Image/Refresh.png" />
                                    </Button.Background>
                                </Button>
                                <TextBlock FontSize="18" Margin="1,0,0,0" >价格</TextBlock>
                                <TextBox Background="White"  FontSize="18"   Margin="1,0,0,0"  Width="100" Height="30" VerticalAlignment="Top" Text="{Binding ARWERT, Source={ StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=d1000}}"/>
                            </WrapPanel>
                            <WrapPanel>
                                <Button FontSize="18" Height="24" Width="24" Margin="1,0,0,0"  Click="btnUpdateEX_Click">
                                    <Button.Background>
                                        <ImageBrush  ImageSource="Image/Refresh.png" />
                                    </Button.Background>
                                </Button>
                                <TextBlock FontSize="18" Text="外发厂"  Margin="1,0,0,0" />
                                <ComboBox
                                Text="{Binding EXTFTYNAME, Converter={StaticResource ResourceKey=gb2312}, Source={ StaticResource ResourceKey=vwPABPOS}}"
                                    Name="cbExtFact"
                                    HorizontalAlignment="Left"
                                    IsEditable="True"
                                    IsTextSearchEnabled="True"
                                    Height="30"
                                    FontSize="12"
                                    VerticalAlignment="Top" 
                                    IsTextSearchCaseSensitive="False"
                                    Width="180"
                                    DisplayMemberPath="LSNAME1"
                                    SelectedValuePath="LSLIEFNR"
                                    ItemsSource="{Binding Source={StaticResource ResourceKey=vwLIEFDAT}}"
                                    >
                                </ComboBox>
                            </WrapPanel>                   
                        </StackPanel>
                        <StackPanel  Grid.Row="1" Grid.RowSpan="1" Grid.Column="5" Grid.ColumnSpan="1">
                            <TextBlock FontSize="18"> 试样情况</TextBlock>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>发封头样</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=RSSENDDAT, Source={StaticResource ResourceKey=vwPABPOS}}"/>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>回头样</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=RSGETDATE, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>下齐色样</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=RSACSENDDATE, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>工厂寄回齐色样</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=RSACGETDATE, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>确认各色</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=RSACCDATE, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>盖章样发出时间</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=RSSSTAMPSENDATE, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"></RowDefinition>
                                    <RowDefinition Height="200"></RowDefinition>
                                </Grid.RowDefinitions>
                                <TextBlock Grid.Row="0">确认意见:</TextBlock>
                                <TextBox Grid.Row="1"  HorizontalAlignment="Stretch" Background="LightGray"  
                                         TextWrapping="Wrap"
                                         AcceptsReturn="True"
                                         Text="{Binding Path=RSACCCOMMENTS, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"/>
                            </Grid>
                        </StackPanel>

                        <StackPanel  Grid.Row="2" Grid.RowSpan="1" Grid.Column="0" Grid.ColumnSpan="3">
                            <TextBlock FontSize="18">原料</TextBlock>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>面料发货时间</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=EMFSENDDAT, Source={StaticResource ResourceKey=vwPABPOS}}"/>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="67"></ColumnDefinition>
                                    <ColumnDefinition Width="14"/>
                                </Grid.ColumnDefinitions>
                                <TextBlock>配布/里布发货</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=EAFSENDDAT, Source={StaticResource ResourceKey=vwPABPOS}}" Grid.ColumnSpan="2" Margin="1,0,0,0"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>辅料发货</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=EACSENDATE, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>

                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>采购下核对单</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=ECHECKDAT, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>工厂回核对单</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=EFCHECKDAT, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"></RowDefinition>
                                    <RowDefinition Height="200"></RowDefinition>
                                </Grid.RowDefinitions>
                                <TextBlock Grid.Row="0">备注</TextBlock>
                                <TextBox Grid.Row="1"   Background="LightGray" 
                                         HorizontalAlignment="Stretch"
                                                                   TextWrapping="Wrap"
                                         AcceptsReturn="True"
                                         Text="{Binding Path=EREMARK, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"/>
                            </Grid>

                        </StackPanel>
                        <StackPanel  Grid.Row="2" Grid.RowSpan="1" Grid.Column="3" Grid.ColumnSpan="1">
                            <TextBlock FontSize="18">生产</TextBlock>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>订货会</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=TQTYD, Source={StaticResource ResourceKey=vwPABPOS}}"/>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>下单数</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=TQTYP, Source={StaticResource ResourceKey=vwPABPOS}}"/>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>裁剪数</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PCQTY, Source={StaticResource ResourceKey=vwPABPOS}}"/>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>入库数</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PPQTY, Source={StaticResource ResourceKey=vwPABPOS}}"/>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>差异数（裁剪与入库)</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PDQTY, Source={StaticResource ResourceKey=vwPABPOS}}"/>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>裁剪时间</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PCDAT, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>上线时间</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PSDAT, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>上线人数</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PSLAB, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>台产量</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PMOUT, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>预计入库</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PPENDAT, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>实际入库</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PAENDAE, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>入库截止</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PAENDSTOPDAT, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>合同期</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PSTARTDATE, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                        </StackPanel>
                        <StackPanel  Grid.Row="2" Grid.RowSpan="1" Grid.Column="4" Grid.ColumnSpan="1">
                            <TextBlock FontSize="18">质量</TextBlock>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>检验</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PQCDAT, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="60"></ColumnDefinition>
                                    <ColumnDefinition Width="80"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>检品退货</TextBlock>
                                <TextBox Grid.Column="1" HorizontalContentAlignment="Stretch"  Background="LightGray"  Text="{Binding Path=PQC2QTY, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>

                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>返修回库时间</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PREPRTNDAT, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>样衣样卡返回时间</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PSAMRTDAT, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"></RowDefinition>
                                    <RowDefinition Height="200"></RowDefinition>
                                </Grid.RowDefinitions>
                                <TextBlock Grid.Row="0">退货问题描述</TextBlock>

                                <TextBox Grid.Row="1"       HorizontalAlignment="Stretch"
                                                                   TextWrapping="Wrap"  Background="LightGray"  Text="{Binding Path=PQC2REMARK, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"/>
                            </Grid>
                        </StackPanel>
                        <StackPanel Grid.Row="2" Grid.Column="5" Grid.ColumnSpan="1">
                            <TextBlock FontSize="18">销售</TextBlock>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock>销售投诉时间</TextBlock>
                                <TextBox Grid.Column="1"  Width="80" Background="LightGray"  Text="{Binding Path=PQADAE, Source={StaticResource ResourceKey=vwPABPOS}}"></TextBox>
                            </Grid>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"></RowDefinition>
                                    <RowDefinition Height="200"></RowDefinition>
                                </Grid.RowDefinitions>
                                <TextBlock Grid.Row="0">销售反应投诉问题描述</TextBlock>

                                <TextBox Grid.Row="1"       HorizontalAlignment="Stretch"
                                                                   TextWrapping="Wrap"  Background="LightGray"  Text="{Binding Path=PQAISSUE, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"/>
                            </Grid>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"></RowDefinition>
                                    <RowDefinition Height="200"></RowDefinition>
                                </Grid.RowDefinitions>
                                <TextBlock Grid.Row="0">处理方案</TextBlock>

                                <TextBox Grid.Row="1"    HorizontalAlignment="Stretch"
                                                                   TextWrapping="Wrap"  Background="LightGray"  Text="{Binding Path=PQAREMARK, Source={StaticResource ResourceKey=vwPABPOS}, Converter={StaticResource ResourceKey=gb2312}}"/>
                            </Grid>
                        </StackPanel>
                    </Grid>
                </DockPanel>
            </TabItem>
        </TabControl>
    </Grid>
</local:DocumentBase>